import axios from '@/libs/request/axios'
// 获取省市区接口
export const getLocation = (params) => {
    return axios.request({
        url: `apply/common/getAddressList`,
        method: 'POST',
        data: params,
    })
};
// 查询留言列表
export const getRemindList = (params) => {
    return axios.request({
        url: `apply/remind/getRemindList`,
        method: 'POST',
        params: params,
    })
}
// 保存留言列表
export const savaRemindDetails = (params) => {
    return axios.request({
        url: `apply/remind/savaRemindDetails`,
        method: 'POST',
        data: params,
    })
}

// 获取全部权限数据
export const getAllAddressList = (params) => {
    return axios.request({
        url: `apply/common/getAddressTree`,
        method: 'POST',
        params: params,
    })
}

// 获取车型库数据
export const getAllCarList = (params) => {
    return axios.request({
        url: `apply/vehicle/getCarTree`,
        method: 'POST',
        params: params,
    })
}

// 申请提交
export const submitCaseInfo = (params) => {
    return axios.request({
        url: 'apply/applyReport/submitCaseInfo',
        method: 'POST',
        data: params,
    })
}

export const getAreaValueById = (params) => {
    return axios.request({
        url: '/apply/common/getAreaValueById',
        method: 'post',
        data: params
    });
}
/**
 * 获取影像件需要的数据
 * @param params
 * @returns {*}
 */
export const getFilterParams = (params) => {
    return axios.request({
        url: '/apply/applyFilter/getFilterParams',
        method: 'post',
        data: params
    });
}
/**
 * 点击发起资产变更请求到信审
 * @param params
 * @returns {*}
 */
export const sendAssertChangeCaseSubmit = (params) => {
    return axios.request({
        url: '/apply/applyReport/sendAssertChangeCaseSubmit',
        method: 'post',
        data: params
    });
}
/**
 * 资产变更前，留痕数据
 * @param params
 * @returns {*}
 */
export const saveAssertData = (params) => {
    return axios.request({
        url: '/apply/order/saveAssertData',
        method: 'post',
        data: params
    });
}


